package com.zh.risk.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * code is far away from bug with the animal protecting
 * ┏┓　　　┏┓
 * ┏┛┻━━━┛┻┓
 * ┃　　　　　　　┃
 * ┃　　　━　　　┃
 * ┃　┳┛　┗┳　┃
 * ┃　　　　　　　┃
 * ┃　　　┻　　　┃
 * ┃　　　　　　　┃
 * ┗━┓　　　┏━┛
 * 　　┃　　　┃神兽保佑
 * 　　┃　　　┃代码无BUG！
 * 　　┃　　　┗━━━┓
 * 　　┃　　　　　　　┣┓
 * 　　┃　　　　　　　┏┛
 * 　　┗┓┓┏━┳┓┏┛
 * 　　　┃┫┫　┃┫┫
 * 　　　┗┻┛　┗┻┛
 *
 * @Description: 风控黑名单列表
 * @Author: Liard
 * @Create in: 2020/7/15 17:22
 * @Version: 1.0.1
 */
@Document
@ApiModel(value = "风控黑名单列表实体信息")
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("elec_risk_black_list")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class RiskBlackList extends Model<RiskBlackList> {


    private static final long serialVersionUID = 8646078414529331419L;
    @ApiModelProperty(value = "主键", name = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private String id;

    @ApiModelProperty(value = "黑名单类型(1.所有，2.法人,3.结算卡,4.结算账户,5.联系人手机号,绑定手机号，6.ip限制,7.风险地区限制,8.敏感地区限制)", name = "type")
    private Integer type;

    @ApiModelProperty(value = "描述", name = "description")
    private String description;

    @ApiModelProperty(value = "风控对象", name = "riskObj")
    private String riskObj;

    @ApiModelProperty(value = "查询", name = "val")
    @TableField(exist = false)
    private String val;

    public RiskBlackList() { }

    public RiskBlackList(Integer type) {
        this.type = type;
    }
}
